﻿<%@ page language="java" import="java.util.*,ct.zxd.db.*" pageEncoding="utf-8"
contentType="text/html"
%>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
    <title>商家信息</title>  
    <link rel="stylesheet" href="css/pintuer.css">
    <link rel="stylesheet" href="css/admin.css">
    
</head>
<%
	String shop = request.getParameter("shopid");
	
	Dao dao = new Dao();
	List<Map<String,Object>>list = dao.getTableByid("shop", shop, null);
	//System.out.println("list "+list.get(0));
	Map<String,Object> map = list.get(0); 
	String shopid = map.get("shop_id").toString();
	String name = map.get("name").toString();
	String address = map.get("address").toString();
	String phone = map.get("phone").toString();
	String logName = map.get("logName").toString();
	String city = map.get("city").toString();
	String status = map.get("status").toString();
	String imagestring = map.get("images").toString();
	String [] images = imagestring.split("\\|");
 %>

<body>
<div class="panel admin-panel">
  <div class="panel-head"><strong><span class="icon-pencil-square-o"></span> 商家信息</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="">
     
      <div class="form-group">
        <div class="label">
          <label>名称：</label>
        </div>
        <div class="field">
          <input type="text" class="input" name="name" value="<%=name%>" disabled= true/>
          <div class="tips"></div>
        </div>
      </div>        
      
	<div class="form-group">
        <div class="label">
          <label>地址：</label>
        </div>
        <div class="field">
          <input type="text" class="input" name="address" value="<%=address%>" disabled= true/>
          <div class="tips"></div>
        </div>
      </div>

	<div class="form-group">
        <div class="label">
          <label>电话：</label>
        </div>
        <div class="field">
          <input type="text" class="input" name="phone" value="<%=phone%>" disabled= true/>
          <div class="tips"></div>
        </div>
      </div>

	<div class="form-group">
        <div class="label">
          <label>用户名：</label>
        </div>
        <div class="field">
          <input type="text" class="input" name="logName" value="<%=logName%>" disabled= true/>
          <div class="tips"></div>
        </div>
      </div>

	<div class="form-group">
        <div class="label">
          <label>所在城市：</label>
        </div>
        <div class="field">
          <input type="text" class="input" name="city" value="<%=city%>" disabled= true/>
          <div class="tips"></div>
        </div>
      </div>

     
	<div class="form-group">
        <div class="label">
          <label>图片：</label>
        </div>
        <div class="field">
        <%for(String img:images){%>	
        		<img src="<%=img %>" alt="" width="300" height="100" />       	
        <%}%>		
        </div>
      </div>

    </form>
  </div>
</div>
</body></html>